package com.nowcoder.community.dao;/**
 * @description:
 * @Author HP
 * @create 2021/12/18 14:37
 */

import com.nowcoder.community.entity.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author HP
 * @create 2021-12-18 14:37
 * @desc 对查询评论comment表对应的mapper
 **/
@Mapper
public interface CommentMapper {

    List<Comment> selectCommentsByEntityId(int entityType,int entityId,int offset,int limit);

    int selectCountByEntity(int entityType,int entityId);

    int insertComment(Comment comment);

    Comment selectCommentById(int id);

}
